package com.example.login.mapper;

import com.example.login.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginMapper {

    public List<User> getAllLogin();

    void save(User newUser);

    User findByUsernameOrStudentId(String userName, String studentNum);

    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}
